package cc.yugu.yhdw.webserver.persistence.basic;

import cc.yugu.yhdw.common.domain.basic.DepositOrder;
import cc.yugu.yhdw.common.persistence.MasterMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
/**
 * 充电订单信息映射
 *
 * @Date:Created in 2018/6/28 13:45
 * @Author:
 * @Modified By: zjn 2018/6/28 13:45
 */
public interface DepositOrderMapper extends MasterMapper {
    /**
    * 根据主键id查询表 bas_Deposit_order
    *
    * @Param: [id]
    * @Return: cc.yugu.yhdw.common.domain.basic.DepositOrder
    * @Author By: zjn 2018/6/28  13:45
    */
    public DepositOrder find(String id);
    /**
    * 根据客户id查询所对应的行数
    *
    * @Param: [search]
    * @Return: int
    * @Author By: zjn 2018/6/28  13:46
    */
    public int findPageCount(DepositOrder search);
    /**
    * 分页查询，根据客户id查询出所有数据，并按照主键id降序（从大到小）排列显示
    *
    * @Param: [search]
    * @Return: java.util.List<cc.yugu.yhdw.common.domain.basic.DepositOrder>
    * @Author By: zjn 2018/6/28  13:47
    */
    public List<DepositOrder> findPageResult(DepositOrder search);
    /**
    * 往指定字段插入数据
    *
    * @Param: [deposit]
    * @Return: int
    * @Author By: zjn 2018/6/28  13:55
    */
    public int insert(DepositOrder deposit);
    /**
    * 更新指定主键id和订单状态的 操作时间和订单状态字段
    *
    * @Param: [id, handleTime, fromStatus, toStatus]
    * @Return: int
    * @Author By: zjn 2018/6/28  13:57
    */
    public int payOk(@Param("id") String id, @Param("handleTime") Date handleTime, @Param("fromStatus") int fromStatus, @Param("toStatus") int toStatus);
}
